package cn.qiyu5522.tk_ems.myEnum;

import com.alibaba.fastjson2.annotation.JSONType;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @BelongsProject: tk_ems
 * @BelongsPackage: cn.qiyu5522.tk_ems.tonkeyEnum
 * @Author: TangQi
 * @CreateTime: 2023-02-03  17:46
 * @Description: TODO
 * @Version: 1.0
 */
@Getter
public enum SexEnum {
    MAN(1,"男"),
    WOMAN(0,"女");
    @EnumValue //将注解所标识的属性的值存储到数据库中
    private Integer sex;
    @JsonValue
    private String sexName;

    SexEnum(Integer sex, String sexName) {
        this.sex = sex;
        this.sexName = sexName;
    }
}
